package com.macro.mall.portal.remton;
import com.macro.mall.common.api.CommonResult;
import com.macro.mall.common.dto.EsTableRes;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.Map;

@FeignClient("mall-es")
public interface EsServiceRemton {
    @PostMapping("/table/search")
     CommonResult <Map<String,Object>> search(@Validated @RequestBody EsTableRes esTableRes);
}
